package com.prp.db.idao;

import java.util.List;

import com.prp.db.po.SubjectComment;

public interface ISubjectCommentDAO {
	public void save(SubjectComment transientInstance);

	public void delete(SubjectComment persistentInstance);

	public SubjectComment findById(java.lang.Integer id);

	public List findByExample(SubjectComment instance);

	public List findByProperty(String propertyName, Object value);

	public List findByContent(Object content);

	public List findByScore(Object score);

	public List findAll();

	public SubjectComment merge(SubjectComment detachedInstance);

	public void attachDirty(SubjectComment instance);

	public void attachClean(SubjectComment instance);

	public List findByCommentUserId(Object userId);

	public List findByToSubjectId(Object toSubjectId);

	public Double getAverageScore(int subjectId);
}
